package sf.md.create.builder.client;

import sf.md.create.builder.*;
import sf.md.create.builder.interfaces.MealManger;

public class Client {

    public static void main(String[] args){
         MealManger mealBuilder  = new MealBuilerHander("简单一顿");
         Item yinLiao  = new NaiChaDrink();
         Item reCai   = new ChaoQINCai();


          mealBuilder.build(yinLiao);
          mealBuilder.build(reCai);

         System.out.println("创建简单一顿完毕,打印信息");
        Meal meal =  mealBuilder.getMeal();
      System.out.println("打印："+mealBuilder.outInfo(meal));

    }
}
